export const doList = (params) => {
	return uni.$uv.http.get('/demand/getUserList', {
		params
	})
}

export const doOrderList = (params) => {
	return uni.$uv.http.get(`/demand/getMerchantList`, {
		params
	})
}

export const doTui = (data) => {
	return uni.$uv.http.post(`/demand/recommended`, data)
}
export const doDtList = (data) => {
	return uni.$uv.http.post(`/demand/getList`, data)
}


export const doQiang = (id) => {
	return uni.$uv.http.post(`/demand/merchantSnatch/${id}`)
}


export const doDetail = (id) => {
	return uni.$uv.http.get(`/demand/getInfo/${id}`)
}

export const doAdd = (data) => {
	return uni.$uv.http.post('/demand/saveDemand', data)
}

export const doCancel = (id) => {
	return uni.$uv.http.get(`/demand/cancel/${id}`)
}

export const doEnd = (id) => {
	return uni.$uv.http.get(`/demand/end/${id}`)
}